package ch.zbw.iCoach.Dameon;

/**
 * This class is a main part of the play modus. At the moment of playing it stores all information from an active user
 *  and hold an LanguageList reference.
 *  
 *  This class extend to an "User" class. 
 * 
 * @author Dameon Crane
 * @version Version 1 (release 18.03.2013)
 */

public class Language {
	/**
	* The constructor initialises the parameters required to add languages. 
	* 
	* @param Word    	parameter for the word
	* @param langID		parameter for the int langID
	* @param primaryKey	parameter for the int priKey	
	* @param parentKey  parameter for the int parKey
	* @param userName   parameter for the userName String
	*/
	
    //Datafield category name
    private String word;
    private int langID;
    private int primaryKey;
    private int parentKey;
    private String userName;
	
    
	public Language(String word, int langID, int primaryKey, int parentKeyLevel, String userName) {
		this.word = word;
		this.langID = langID;
		this.primaryKey = primaryKey;
		this.parentKey = parentKeyLevel;
		this.userName = userName;
	}

	/**
	* This method retrieves the user name
	* 
	*/
	public String getUserName() {
		return userName;
	}

	/**
	* This method sets the user name
	* 
	*/
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	* This method retrieves a word
	* 
	*/
	public String getWord() {
		return word;
	}
	/**
	* This method retrieves the language ID
	* 
	*/

	public int getLangID() {
		return langID;
	}
	/**
	* This method retrieves the PrimaryKey
	* 
	*/

	public int getPrimaryKey() {
		return primaryKey;
	}
	/**
	* This method retrieves the ParentKey
	* 
	*/

	public int getParentKey() {
		return parentKey;
	}

	/**
	* This method adds a word
	* 
	*/
	public void setWord(String word) {
		this.word = word;
	}
	/**
	* This method sets the LangID
	* 
	*/

	public void setLangID(int langID) {
		this.langID = langID;
	}
	/**
	* This method sets the PrimaryKey
	* 
	*/

	public void setPrimaryKey(int primaryKey) {
		this.primaryKey = primaryKey;
	}
	/**
	* This method sets the ParentKey
	* 
	*/

	public void setParentKey(int parentKey) {
		this.parentKey = parentKey;
	}
}